import request from '../utils/request'

export default {
  //登录
  login(data) {
    return request.post('https://v3pz.itndedu.com/v3pz/login', data)
  },

  //首页数据
  index() {
    return request.get('https://v3pz.itndedu.com/v3pz/Index/index')
  },

  //订单详情
  h5Companion() {
    return request.get('https://v3pz.itndedu.com/v3pz/h5/companion')
  },

  //提交订单
  createOrder(data) {
    return request.post('https://v3pz.itndedu.com/v3pz/createOrder', data)
  },

  //订单列表
  orderList(params) {
    return request.get('https://v3pz.itndedu.com/v3pz/order/list', { params })
  },

  //订单详情
  orderDetail(params) {
    return request.get('https://v3pz.itndedu.com/v3pz/order/detail', { params })
  }
}